package com.swjd.pojo;

import java.util.List;

public class Goods {
    private Integer goodsID;//商品编号

    private String goodsName;//商品名称

    private String gDesc;//商品介绍

    private Integer status;//商品状态（是否售出）

    private Integer price;//商品价格

    private Integer typeID;//商品类型对应的编号

    private String username;//用户名

    private Type type;//类型（对象）

    private List<Image> ImgList;//商品图片（集合）

    private User user;//用户（对象）

    private Orders orders;//订单（对象）

    @Override
    public String toString() {
        return "Goods{" +
                "goodsID=" + goodsID +
                ", goodsName='" + goodsName + '\'' +
                ", gDesc='" + gDesc + '\'' +
                ", status=" + status +
                ", price=" + price +
                ", typeID=" + typeID +
                ", username='" + username + '\'' +
                ", type=" + type +
                ", ImgList=" + ImgList +
                ", user=" + user +
                '}';
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Image> getImgList() {
        return ImgList;
    }

    public void setImgList(List<Image> imgList) {
        ImgList = imgList;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Integer getGoodsID() {
        return goodsID;
    }

    public void setGoodsID(Integer goodsID) {
        this.goodsID = goodsID;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName == null ? null : goodsName.trim();
    }

    public String getgDesc() {
        return gDesc;
    }

    public void setgDesc(String gDesc) {
        this.gDesc = gDesc == null ? null : gDesc.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getTypeID() {
        return typeID;
    }

    public void setTypeID(Integer typeID) {
        this.typeID = typeID;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }
}